import { createApp } from "vue";
import App from "./App.vue";

// 全局样式
import "@/assets/scss/global.scss";

import ElementPlus from "element-plus";
import "element-plus/dist/index.css";

import router from "@/router";

import { setOverAllComponents } from "./components";

// 引入状态管理
import { setupStore } from "@/store";

const setupAll = async () => {
	const app = createApp(App);
	setupStore(app);

	setOverAllComponents(app);

	app.use(router);

	app.use(ElementPlus);

	app.mount("#app");
};

setupAll();
